package com.wunong.smart.bigdata.flink.data;

import lombok.Data;

import java.io.Serializable;

/**
 * @author created by zealot.zt
 */
@Data
public class SourceData implements Serializable {

    private String id;

    private String name;

    public static SourceData create(String id, String name) {
        SourceData data = new SourceData();
        data.setId(id);
        data.setName(name);
        return data;
    }

    public static SourceData create(String id) {
        return create(id, id.toLowerCase());
    }

}